import url from '../url-config.js'
import { Api } from './ApiClass'
import req from '../request'
export const selfEvaluationApi = new Api(url.selfEvaluation.crud)
selfEvaluationApi.list = data => req.get(url.selfEvaluation.list, data)
// export const selfEvaluationTemplateApi = new Api(url.selfEvaluation.template)
export const selfEvaluationRecordApi = {}
selfEvaluationRecordApi.zp = data => req.post(url.selfEvaluation.zp, data)

export const getTableList = data => req.get(url.applyManage.list, data)
export const applyApi = {}
applyApi.notItem = data => req.post(url.applyManage.notItem, data)
applyApi.detail = data => req.get(url.applyManage.detail, data)
applyApi.baseInfo = data => req.put(url.applyManage.baseInfo, data)
applyApi.material = data => req.put(url.applyManage.material, data)
applyApi.selfEvaluation = data => req.put(url.applyManage.selfEvaluation, data)
applyApi.again = data => req.get(url.applyManage.again, data)
applyApi.del = data => req.del(url.applyManage.del, data)

export const getApplyState = () => req.get(url.applyManage.applyState)

export const getCheckTableList = data => req.get(url.checkManage.list, data)

export const checkApi = {}
checkApi.revoke = data => req.post(url.checkManage.revoke, data)
checkApi.stop = data => req.post(url.checkManage.stop, data)
checkApi.pass = data => req.post(url.checkManage.pass, data)
checkApi.sp = data => req.post(url.checkManage.sp, data)
export const getReason = data => req.get(url.applyManage.stopAndRevokeReason, data)
